package com.fable.dal.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class QuickOrderQuery {
    /**
     * order by clause.
     */
    protected String orderByClause;

    /**
     * distinct
     */
    protected boolean distinct;

    /**
     * criteria list
     */
    protected List<Criteria> oredCriteria;

    /**
     * page
     */
    protected Integer pageOffset;

    /**
     * page size
     */
    protected Integer pageSize;

    public QuickOrderQuery() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public boolean isValid() {
        for (int i = 0; i < oredCriteria.size(); i++) {
            if (oredCriteria.get(i).isValid()) {
                return true;
            }
        }
        return false;
    }

    public void setPageOffset(Integer pageOffset) {
        this.pageOffset = pageOffset;
    }

    public Integer getPageOffset() {
        return pageOffset;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }
        /**

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }


                public Criteria andGmtCreateIsNull() {
                    addCriterion("gmt_create is null");
                    return (Criteria) this;
                }

                public Criteria andGmtCreateIsNotNull() {
                    addCriterion("gmt_create is not null");
                    return (Criteria) this;
                }

                public Criteria andGmtCreateEqualTo(Date value) {
                    addCriterion("gmt_create =", value, "gmtCreate");
                    return (Criteria) this;
                }

                public Criteria andGmtCreateNotEqualTo(Date value) {
                    addCriterion("gmt_create <>", value, "gmtCreate");
                    return (Criteria) this;
                }

                public Criteria andGmtCreateGreaterThan(Date value) {
                    addCriterion("gmt_create >", value, "gmtCreate");
                    return (Criteria) this;
                }

                public Criteria andGmtCreateGreaterThanOrEqualTo(Date value) {
                    addCriterion("gmt_create >=", value, "gmtCreate");
                    return (Criteria) this;
                }

                public Criteria andGmtCreateLessThan(Date value) {
                    addCriterion("gmt_create <", value, "gmtCreate");
                    return (Criteria) this;
                }

                public Criteria andGmtCreateLessThanOrEqualTo(Date value) {
                    addCriterion("gmt_create <=", value, "gmtCreate");
                    return (Criteria) this;
                }

                public Criteria andGmtCreateIn(List<Date> values) {
                    addCriterion("gmt_create in", values, "gmtCreate");
                    return (Criteria) this;
                }

                public Criteria andGmtCreateNotIn(List<Date> values) {
                    addCriterion("gmt_create not in", values, "gmtCreate");
                    return (Criteria) this;
                }

                public Criteria andGmtCreateBetween(Date value1, Date value2) {
                    addCriterion("gmt_create between", value1, value2, "gmtCreate");
                    return (Criteria) this;
                }

                public Criteria andGmtCreateNotBetween(Date value1, Date value2) {
                    addCriterion("gmt_create not between", value1, value2, "gmtCreate");
                    return (Criteria) this;
                }

                public Criteria andGmtModifiedIsNull() {
                    addCriterion("gmt_modified is null");
                    return (Criteria) this;
                }

                public Criteria andGmtModifiedIsNotNull() {
                    addCriterion("gmt_modified is not null");
                    return (Criteria) this;
                }

                public Criteria andGmtModifiedEqualTo(Date value) {
                    addCriterion("gmt_modified =", value, "gmtModified");
                    return (Criteria) this;
                }

                public Criteria andGmtModifiedNotEqualTo(Date value) {
                    addCriterion("gmt_modified <>", value, "gmtModified");
                    return (Criteria) this;
                }

                public Criteria andGmtModifiedGreaterThan(Date value) {
                    addCriterion("gmt_modified >", value, "gmtModified");
                    return (Criteria) this;
                }

                public Criteria andGmtModifiedGreaterThanOrEqualTo(Date value) {
                    addCriterion("gmt_modified >=", value, "gmtModified");
                    return (Criteria) this;
                }

                public Criteria andGmtModifiedLessThan(Date value) {
                    addCriterion("gmt_modified <", value, "gmtModified");
                    return (Criteria) this;
                }

                public Criteria andGmtModifiedLessThanOrEqualTo(Date value) {
                    addCriterion("gmt_modified <=", value, "gmtModified");
                    return (Criteria) this;
                }

                public Criteria andGmtModifiedIn(List<Date> values) {
                    addCriterion("gmt_modified in", values, "gmtModified");
                    return (Criteria) this;
                }

                public Criteria andGmtModifiedNotIn(List<Date> values) {
                    addCriterion("gmt_modified not in", values, "gmtModified");
                    return (Criteria) this;
                }

                public Criteria andGmtModifiedBetween(Date value1, Date value2) {
                    addCriterion("gmt_modified between", value1, value2, "gmtModified");
                    return (Criteria) this;
                }

                public Criteria andGmtModifiedNotBetween(Date value1, Date value2) {
                    addCriterion("gmt_modified not between", value1, value2, "gmtModified");
                    return (Criteria) this;
                }
                 **/

        public Criteria andMhcQuickOrderIdIsNull() {
            addCriterion("mhc_quick_order_id is null");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdIsNotNull() {
            addCriterion("mhc_quick_order_id is not null");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdEqualTo(Long value) {
            addCriterion("mhc_quick_order_id =", value, "mhcQuickOrderId");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdNotEqualTo(Long value) {
            addCriterion("mhc_quick_order_id <>", value, "mhcQuickOrderId");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdGreaterThan(Long value) {
            addCriterion("mhc_quick_order_id >", value, "mhcQuickOrderId");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("mhc_quick_order_id >=", value, "mhcQuickOrderId");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdLessThan(Long value) {
            addCriterion("mhc_quick_order_id <", value, "mhcQuickOrderId");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("mhc_quick_order_id <=", value, "mhcQuickOrderId");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdLike(Long value) {
            addCriterion("mhc_quick_order_id like", value, "mhcQuickOrderId");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdNotLike(Long value) {
            addCriterion("mhc_quick_order_id not like", value, "mhcQuickOrderId");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdIn(List<Long> values) {
            addCriterion("mhc_quick_order_id in", values, "mhcQuickOrderId");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdNotIn(List<Long> values) {
            addCriterion("mhc_quick_order_id not in", values, "mhcQuickOrderId");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdBetween(Long value1, Long value2) {
            addCriterion("mhc_quick_order_id between", value1, value2, "mhcQuickOrderId");
            return (Criteria) this;
        }

        public Criteria andMhcQuickOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("mhc_quick_order_id not between", value1, value2, "mhcQuickOrderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Long value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Long value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Long value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Long value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLike(Long value) {
            addCriterion("order_id like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotLike(Long value) {
            addCriterion("order_id not like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Long> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Long> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Long value1, Long value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andModelIdIsNull() {
            addCriterion("model_id is null");
            return (Criteria) this;
        }

        public Criteria andModelIdIsNotNull() {
            addCriterion("model_id is not null");
            return (Criteria) this;
        }

        public Criteria andModelIdEqualTo(Long value) {
            addCriterion("model_id =", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdNotEqualTo(Long value) {
            addCriterion("model_id <>", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdGreaterThan(Long value) {
            addCriterion("model_id >", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdGreaterThanOrEqualTo(Long value) {
            addCriterion("model_id >=", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdLessThan(Long value) {
            addCriterion("model_id <", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdLessThanOrEqualTo(Long value) {
            addCriterion("model_id <=", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdLike(Long value) {
            addCriterion("model_id like", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdNotLike(Long value) {
            addCriterion("model_id not like", value, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdIn(List<Long> values) {
            addCriterion("model_id in", values, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdNotIn(List<Long> values) {
            addCriterion("model_id not in", values, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdBetween(Long value1, Long value2) {
            addCriterion("model_id between", value1, value2, "modelId");
            return (Criteria) this;
        }

        public Criteria andModelIdNotBetween(Long value1, Long value2) {
            addCriterion("model_id not between", value1, value2, "modelId");
            return (Criteria) this;
        }

        public Criteria andSeriesIdIsNull() {
            addCriterion("series_id is null");
            return (Criteria) this;
        }

        public Criteria andSeriesIdIsNotNull() {
            addCriterion("series_id is not null");
            return (Criteria) this;
        }

        public Criteria andSeriesIdEqualTo(Long value) {
            addCriterion("series_id =", value, "seriesId");
            return (Criteria) this;
        }

        public Criteria andSeriesIdNotEqualTo(Long value) {
            addCriterion("series_id <>", value, "seriesId");
            return (Criteria) this;
        }

        public Criteria andSeriesIdGreaterThan(Long value) {
            addCriterion("series_id >", value, "seriesId");
            return (Criteria) this;
        }

        public Criteria andSeriesIdGreaterThanOrEqualTo(Long value) {
            addCriterion("series_id >=", value, "seriesId");
            return (Criteria) this;
        }

        public Criteria andSeriesIdLessThan(Long value) {
            addCriterion("series_id <", value, "seriesId");
            return (Criteria) this;
        }

        public Criteria andSeriesIdLessThanOrEqualTo(Long value) {
            addCriterion("series_id <=", value, "seriesId");
            return (Criteria) this;
        }

        public Criteria andSeriesIdLike(Long value) {
            addCriterion("series_id like", value, "seriesId");
            return (Criteria) this;
        }

        public Criteria andSeriesIdNotLike(Long value) {
            addCriterion("series_id not like", value, "seriesId");
            return (Criteria) this;
        }

        public Criteria andSeriesIdIn(List<Long> values) {
            addCriterion("series_id in", values, "seriesId");
            return (Criteria) this;
        }

        public Criteria andSeriesIdNotIn(List<Long> values) {
            addCriterion("series_id not in", values, "seriesId");
            return (Criteria) this;
        }

        public Criteria andSeriesIdBetween(Long value1, Long value2) {
            addCriterion("series_id between", value1, value2, "seriesId");
            return (Criteria) this;
        }

        public Criteria andSeriesIdNotBetween(Long value1, Long value2) {
            addCriterion("series_id not between", value1, value2, "seriesId");
            return (Criteria) this;
        }

        public Criteria andCarStatusIsNull() {
            addCriterion("car_status is null");
            return (Criteria) this;
        }

        public Criteria andCarStatusIsNotNull() {
            addCriterion("car_status is not null");
            return (Criteria) this;
        }

        public Criteria andCarStatusEqualTo(String value) {
            addCriterion("car_status =", value, "carStatus");
            return (Criteria) this;
        }

        public Criteria andCarStatusNotEqualTo(String value) {
            addCriterion("car_status <>", value, "carStatus");
            return (Criteria) this;
        }

        public Criteria andCarStatusGreaterThan(String value) {
            addCriterion("car_status >", value, "carStatus");
            return (Criteria) this;
        }

        public Criteria andCarStatusGreaterThanOrEqualTo(String value) {
            addCriterion("car_status >=", value, "carStatus");
            return (Criteria) this;
        }

        public Criteria andCarStatusLessThan(String value) {
            addCriterion("car_status <", value, "carStatus");
            return (Criteria) this;
        }

        public Criteria andCarStatusLessThanOrEqualTo(String value) {
            addCriterion("car_status <=", value, "carStatus");
            return (Criteria) this;
        }

        public Criteria andCarStatusLike(String value) {
            addCriterion("car_status like", value, "carStatus");
            return (Criteria) this;
        }

        public Criteria andCarStatusNotLike(String value) {
            addCriterion("car_status not like", value, "carStatus");
            return (Criteria) this;
        }

        public Criteria andCarStatusIn(List<String> values) {
            addCriterion("car_status in", values, "carStatus");
            return (Criteria) this;
        }

        public Criteria andCarStatusNotIn(List<String> values) {
            addCriterion("car_status not in", values, "carStatus");
            return (Criteria) this;
        }

        public Criteria andCarStatusBetween(String value1, String value2) {
            addCriterion("car_status between", value1, value2, "carStatus");
            return (Criteria) this;
        }

        public Criteria andCarStatusNotBetween(String value1, String value2) {
            addCriterion("car_status not between", value1, value2, "carStatus");
            return (Criteria) this;
        }

        public Criteria andCashTimeIsNull() {
            addCriterion("cash_time is null");
            return (Criteria) this;
        }

        public Criteria andCashTimeIsNotNull() {
            addCriterion("cash_time is not null");
            return (Criteria) this;
        }

        public Criteria andCashTimeEqualTo(java.sql.Date value) {
            addCriterion("cash_time =", value, "cashTime");
            return (Criteria) this;
        }

        public Criteria andCashTimeNotEqualTo(java.sql.Date value) {
            addCriterion("cash_time <>", value, "cashTime");
            return (Criteria) this;
        }

        public Criteria andCashTimeGreaterThan(java.sql.Date value) {
            addCriterion("cash_time >", value, "cashTime");
            return (Criteria) this;
        }

        public Criteria andCashTimeGreaterThanOrEqualTo(java.sql.Date value) {
            addCriterion("cash_time >=", value, "cashTime");
            return (Criteria) this;
        }

        public Criteria andCashTimeLessThan(java.sql.Date value) {
            addCriterion("cash_time <", value, "cashTime");
            return (Criteria) this;
        }

        public Criteria andCashTimeLessThanOrEqualTo(java.sql.Date value) {
            addCriterion("cash_time <=", value, "cashTime");
            return (Criteria) this;
        }

        public Criteria andCashTimeLike(java.sql.Date value) {
            addCriterion("cash_time like", value, "cashTime");
            return (Criteria) this;
        }

        public Criteria andCashTimeNotLike(java.sql.Date value) {
            addCriterion("cash_time not like", value, "cashTime");
            return (Criteria) this;
        }

        public Criteria andCashTimeIn(List<java.sql.Date> values) {
            addCriterion("cash_time in", values, "cashTime");
            return (Criteria) this;
        }

        public Criteria andCashTimeNotIn(List<java.sql.Date> values) {
            addCriterion("cash_time not in", values, "cashTime");
            return (Criteria) this;
        }

        public Criteria andCashTimeBetween(java.sql.Date value1, java.sql.Date value2) {
            addCriterion("cash_time between", value1, value2, "cashTime");
            return (Criteria) this;
        }

        public Criteria andCashTimeNotBetween(java.sql.Date value1, java.sql.Date value2) {
            addCriterion("cash_time not between", value1, value2, "cashTime");
            return (Criteria) this;
        }

        public Criteria andConfigIsNull() {
            addCriterion("config is null");
            return (Criteria) this;
        }

        public Criteria andConfigIsNotNull() {
            addCriterion("config is not null");
            return (Criteria) this;
        }

        public Criteria andConfigEqualTo(String value) {
            addCriterion("config =", value, "config");
            return (Criteria) this;
        }

        public Criteria andConfigNotEqualTo(String value) {
            addCriterion("config <>", value, "config");
            return (Criteria) this;
        }

        public Criteria andConfigGreaterThan(String value) {
            addCriterion("config >", value, "config");
            return (Criteria) this;
        }

        public Criteria andConfigGreaterThanOrEqualTo(String value) {
            addCriterion("config >=", value, "config");
            return (Criteria) this;
        }

        public Criteria andConfigLessThan(String value) {
            addCriterion("config <", value, "config");
            return (Criteria) this;
        }

        public Criteria andConfigLessThanOrEqualTo(String value) {
            addCriterion("config <=", value, "config");
            return (Criteria) this;
        }

        public Criteria andConfigLike(String value) {
            addCriterion("config like", value, "config");
            return (Criteria) this;
        }

        public Criteria andConfigNotLike(String value) {
            addCriterion("config not like", value, "config");
            return (Criteria) this;
        }

        public Criteria andConfigIn(List<String> values) {
            addCriterion("config in", values, "config");
            return (Criteria) this;
        }

        public Criteria andConfigNotIn(List<String> values) {
            addCriterion("config not in", values, "config");
            return (Criteria) this;
        }

        public Criteria andConfigBetween(String value1, String value2) {
            addCriterion("config between", value1, value2, "config");
            return (Criteria) this;
        }

        public Criteria andConfigNotBetween(String value1, String value2) {
            addCriterion("config not between", value1, value2, "config");
            return (Criteria) this;
        }

        public Criteria andCarNameIsNull() {
            addCriterion("car_name is null");
            return (Criteria) this;
        }

        public Criteria andCarNameIsNotNull() {
            addCriterion("car_name is not null");
            return (Criteria) this;
        }

        public Criteria andCarNameEqualTo(String value) {
            addCriterion("car_name =", value, "carName");
            return (Criteria) this;
        }

        public Criteria andCarNameNotEqualTo(String value) {
            addCriterion("car_name <>", value, "carName");
            return (Criteria) this;
        }

        public Criteria andCarNameGreaterThan(String value) {
            addCriterion("car_name >", value, "carName");
            return (Criteria) this;
        }

        public Criteria andCarNameGreaterThanOrEqualTo(String value) {
            addCriterion("car_name >=", value, "carName");
            return (Criteria) this;
        }

        public Criteria andCarNameLessThan(String value) {
            addCriterion("car_name <", value, "carName");
            return (Criteria) this;
        }

        public Criteria andCarNameLessThanOrEqualTo(String value) {
            addCriterion("car_name <=", value, "carName");
            return (Criteria) this;
        }

        public Criteria andCarNameLike(String value) {
            addCriterion("car_name like", value, "carName");
            return (Criteria) this;
        }

        public Criteria andCarNameNotLike(String value) {
            addCriterion("car_name not like", value, "carName");
            return (Criteria) this;
        }

        public Criteria andCarNameIn(List<String> values) {
            addCriterion("car_name in", values, "carName");
            return (Criteria) this;
        }

        public Criteria andCarNameNotIn(List<String> values) {
            addCriterion("car_name not in", values, "carName");
            return (Criteria) this;
        }

        public Criteria andCarNameBetween(String value1, String value2) {
            addCriterion("car_name between", value1, value2, "carName");
            return (Criteria) this;
        }

        public Criteria andCarNameNotBetween(String value1, String value2) {
            addCriterion("car_name not between", value1, value2, "carName");
            return (Criteria) this;
        }

        public Criteria andGmtCreateIsNull() {
            addCriterion("gmt_create is null");
            return (Criteria) this;
        }

        public Criteria andGmtCreateIsNotNull() {
            addCriterion("gmt_create is not null");
            return (Criteria) this;
        }

        public Criteria andGmtCreateEqualTo(Date value) {
            addCriterion("gmt_create =", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotEqualTo(Date value) {
            addCriterion("gmt_create <>", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateGreaterThan(Date value) {
            addCriterion("gmt_create >", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("gmt_create >=", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateLessThan(Date value) {
            addCriterion("gmt_create <", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateLessThanOrEqualTo(Date value) {
            addCriterion("gmt_create <=", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateLike(Date value) {
            addCriterion("gmt_create like", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotLike(Date value) {
            addCriterion("gmt_create not like", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateIn(List<Date> values) {
            addCriterion("gmt_create in", values, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotIn(List<Date> values) {
            addCriterion("gmt_create not in", values, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateBetween(Date value1, Date value2) {
            addCriterion("gmt_create between", value1, value2, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotBetween(Date value1, Date value2) {
            addCriterion("gmt_create not between", value1, value2, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedIsNull() {
            addCriterion("gmt_modified is null");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedIsNotNull() {
            addCriterion("gmt_modified is not null");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedEqualTo(Date value) {
            addCriterion("gmt_modified =", value, "gmtModified");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedNotEqualTo(Date value) {
            addCriterion("gmt_modified <>", value, "gmtModified");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedGreaterThan(Date value) {
            addCriterion("gmt_modified >", value, "gmtModified");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedGreaterThanOrEqualTo(Date value) {
            addCriterion("gmt_modified >=", value, "gmtModified");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedLessThan(Date value) {
            addCriterion("gmt_modified <", value, "gmtModified");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedLessThanOrEqualTo(Date value) {
            addCriterion("gmt_modified <=", value, "gmtModified");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedLike(Date value) {
            addCriterion("gmt_modified like", value, "gmtModified");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedNotLike(Date value) {
            addCriterion("gmt_modified not like", value, "gmtModified");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedIn(List<Date> values) {
            addCriterion("gmt_modified in", values, "gmtModified");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedNotIn(List<Date> values) {
            addCriterion("gmt_modified not in", values, "gmtModified");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedBetween(Date value1, Date value2) {
            addCriterion("gmt_modified between", value1, value2, "gmtModified");
            return (Criteria) this;
        }

        public Criteria andGmtModifiedNotBetween(Date value1, Date value2) {
            addCriterion("gmt_modified not between", value1, value2, "gmtModified");
            return (Criteria) this;
        }

        public Criteria andColorIsNull() {
            addCriterion("color is null");
            return (Criteria) this;
        }

        public Criteria andColorIsNotNull() {
            addCriterion("color is not null");
            return (Criteria) this;
        }

        public Criteria andColorEqualTo(String value) {
            addCriterion("color =", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorNotEqualTo(String value) {
            addCriterion("color <>", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorGreaterThan(String value) {
            addCriterion("color >", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorGreaterThanOrEqualTo(String value) {
            addCriterion("color >=", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorLessThan(String value) {
            addCriterion("color <", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorLessThanOrEqualTo(String value) {
            addCriterion("color <=", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorLike(String value) {
            addCriterion("color like", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorNotLike(String value) {
            addCriterion("color not like", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorIn(List<String> values) {
            addCriterion("color in", values, "color");
            return (Criteria) this;
        }

        public Criteria andColorNotIn(List<String> values) {
            addCriterion("color not in", values, "color");
            return (Criteria) this;
        }

        public Criteria andColorBetween(String value1, String value2) {
            addCriterion("color between", value1, value2, "color");
            return (Criteria) this;
        }

        public Criteria andColorNotBetween(String value1, String value2) {
            addCriterion("color not between", value1, value2, "color");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderIsNull() {
            addCriterion("is_quick_order is null");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderIsNotNull() {
            addCriterion("is_quick_order is not null");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderEqualTo(Integer value) {
            addCriterion("is_quick_order =", value, "isQuickOrder");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderNotEqualTo(Integer value) {
            addCriterion("is_quick_order <>", value, "isQuickOrder");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderGreaterThan(Integer value) {
            addCriterion("is_quick_order >", value, "isQuickOrder");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_quick_order >=", value, "isQuickOrder");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderLessThan(Integer value) {
            addCriterion("is_quick_order <", value, "isQuickOrder");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderLessThanOrEqualTo(Integer value) {
            addCriterion("is_quick_order <=", value, "isQuickOrder");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderLike(Integer value) {
            addCriterion("is_quick_order like", value, "isQuickOrder");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderNotLike(Integer value) {
            addCriterion("is_quick_order not like", value, "isQuickOrder");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderIn(List<Integer> values) {
            addCriterion("is_quick_order in", values, "isQuickOrder");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderNotIn(List<Integer> values) {
            addCriterion("is_quick_order not in", values, "isQuickOrder");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderBetween(Integer value1, Integer value2) {
            addCriterion("is_quick_order between", value1, value2, "isQuickOrder");
            return (Criteria) this;
        }

        public Criteria andIsQuickOrderNotBetween(Integer value1, Integer value2) {
            addCriterion("is_quick_order not between", value1, value2, "isQuickOrder");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameIsNull() {
            addCriterion("new_agent_name is null");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameIsNotNull() {
            addCriterion("new_agent_name is not null");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameEqualTo(String value) {
            addCriterion("new_agent_name =", value, "newAgentName");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameNotEqualTo(String value) {
            addCriterion("new_agent_name <>", value, "newAgentName");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameGreaterThan(String value) {
            addCriterion("new_agent_name >", value, "newAgentName");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameGreaterThanOrEqualTo(String value) {
            addCriterion("new_agent_name >=", value, "newAgentName");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameLessThan(String value) {
            addCriterion("new_agent_name <", value, "newAgentName");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameLessThanOrEqualTo(String value) {
            addCriterion("new_agent_name <=", value, "newAgentName");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameLike(String value) {
            addCriterion("new_agent_name like", value, "newAgentName");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameNotLike(String value) {
            addCriterion("new_agent_name not like", value, "newAgentName");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameIn(List<String> values) {
            addCriterion("new_agent_name in", values, "newAgentName");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameNotIn(List<String> values) {
            addCriterion("new_agent_name not in", values, "newAgentName");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameBetween(String value1, String value2) {
            addCriterion("new_agent_name between", value1, value2, "newAgentName");
            return (Criteria) this;
        }

        public Criteria andNewAgentNameNotBetween(String value1, String value2) {
            addCriterion("new_agent_name not between", value1, value2, "newAgentName");
            return (Criteria) this;
        }

        public Criteria andInterestIsNull() {
            addCriterion("interest is null");
            return (Criteria) this;
        }

        public Criteria andInterestIsNotNull() {
            addCriterion("interest is not null");
            return (Criteria) this;
        }

        public Criteria andInterestEqualTo(Long value) {
            addCriterion("interest =", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestNotEqualTo(Long value) {
            addCriterion("interest <>", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestGreaterThan(Long value) {
            addCriterion("interest >", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestGreaterThanOrEqualTo(Long value) {
            addCriterion("interest >=", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestLessThan(Long value) {
            addCriterion("interest <", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestLessThanOrEqualTo(Long value) {
            addCriterion("interest <=", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestLike(Long value) {
            addCriterion("interest like", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestNotLike(Long value) {
            addCriterion("interest not like", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestIn(List<Long> values) {
            addCriterion("interest in", values, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestNotIn(List<Long> values) {
            addCriterion("interest not in", values, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestBetween(Long value1, Long value2) {
            addCriterion("interest between", value1, value2, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestNotBetween(Long value1, Long value2) {
            addCriterion("interest not between", value1, value2, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestStartIsNull() {
            addCriterion("interest_start is null");
            return (Criteria) this;
        }

        public Criteria andInterestStartIsNotNull() {
            addCriterion("interest_start is not null");
            return (Criteria) this;
        }

        public Criteria andInterestStartEqualTo(java.sql.Date value) {
            addCriterion("interest_start =", value, "interestStart");
            return (Criteria) this;
        }

        public Criteria andInterestStartNotEqualTo(java.sql.Date value) {
            addCriterion("interest_start <>", value, "interestStart");
            return (Criteria) this;
        }

        public Criteria andInterestStartGreaterThan(java.sql.Date value) {
            addCriterion("interest_start >", value, "interestStart");
            return (Criteria) this;
        }

        public Criteria andInterestStartGreaterThanOrEqualTo(java.sql.Date value) {
            addCriterion("interest_start >=", value, "interestStart");
            return (Criteria) this;
        }

        public Criteria andInterestStartLessThan(java.sql.Date value) {
            addCriterion("interest_start <", value, "interestStart");
            return (Criteria) this;
        }

        public Criteria andInterestStartLessThanOrEqualTo(java.sql.Date value) {
            addCriterion("interest_start <=", value, "interestStart");
            return (Criteria) this;
        }

        public Criteria andInterestStartLike(java.sql.Date value) {
            addCriterion("interest_start like", value, "interestStart");
            return (Criteria) this;
        }

        public Criteria andInterestStartNotLike(java.sql.Date value) {
            addCriterion("interest_start not like", value, "interestStart");
            return (Criteria) this;
        }

        public Criteria andInterestStartIn(List<java.sql.Date> values) {
            addCriterion("interest_start in", values, "interestStart");
            return (Criteria) this;
        }

        public Criteria andInterestStartNotIn(List<java.sql.Date> values) {
            addCriterion("interest_start not in", values, "interestStart");
            return (Criteria) this;
        }

        public Criteria andInterestStartBetween(java.sql.Date value1, java.sql.Date value2) {
            addCriterion("interest_start between", value1, value2, "interestStart");
            return (Criteria) this;
        }

        public Criteria andInterestStartNotBetween(java.sql.Date value1, java.sql.Date value2) {
            addCriterion("interest_start not between", value1, value2, "interestStart");
            return (Criteria) this;
        }

        public Criteria andInterestEndIsNull() {
            addCriterion("interest_end is null");
            return (Criteria) this;
        }

        public Criteria andInterestEndIsNotNull() {
            addCriterion("interest_end is not null");
            return (Criteria) this;
        }

        public Criteria andInterestEndEqualTo(java.sql.Date value) {
            addCriterion("interest_end =", value, "interestEnd");
            return (Criteria) this;
        }

        public Criteria andInterestEndNotEqualTo(java.sql.Date value) {
            addCriterion("interest_end <>", value, "interestEnd");
            return (Criteria) this;
        }

        public Criteria andInterestEndGreaterThan(java.sql.Date value) {
            addCriterion("interest_end >", value, "interestEnd");
            return (Criteria) this;
        }

        public Criteria andInterestEndGreaterThanOrEqualTo(java.sql.Date value) {
            addCriterion("interest_end >=", value, "interestEnd");
            return (Criteria) this;
        }

        public Criteria andInterestEndLessThan(java.sql.Date value) {
            addCriterion("interest_end <", value, "interestEnd");
            return (Criteria) this;
        }

        public Criteria andInterestEndLessThanOrEqualTo(java.sql.Date value) {
            addCriterion("interest_end <=", value, "interestEnd");
            return (Criteria) this;
        }

        public Criteria andInterestEndLike(java.sql.Date value) {
            addCriterion("interest_end like", value, "interestEnd");
            return (Criteria) this;
        }

        public Criteria andInterestEndNotLike(java.sql.Date value) {
            addCriterion("interest_end not like", value, "interestEnd");
            return (Criteria) this;
        }

        public Criteria andInterestEndIn(List<java.sql.Date> values) {
            addCriterion("interest_end in", values, "interestEnd");
            return (Criteria) this;
        }

        public Criteria andInterestEndNotIn(List<java.sql.Date> values) {
            addCriterion("interest_end not in", values, "interestEnd");
            return (Criteria) this;
        }

        public Criteria andInterestEndBetween(java.sql.Date value1, java.sql.Date value2) {
            addCriterion("interest_end between", value1, value2, "interestEnd");
            return (Criteria) this;
        }

        public Criteria andInterestEndNotBetween(java.sql.Date value1, java.sql.Date value2) {
            addCriterion("interest_end not between", value1, value2, "interestEnd");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeIsNull() {
            addCriterion("delivery_time is null");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeIsNotNull() {
            addCriterion("delivery_time is not null");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeEqualTo(Date value) {
            addCriterion("delivery_time =", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeNotEqualTo(Date value) {
            addCriterion("delivery_time <>", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeGreaterThan(Date value) {
            addCriterion("delivery_time >", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("delivery_time >=", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeLessThan(Date value) {
            addCriterion("delivery_time <", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeLessThanOrEqualTo(Date value) {
            addCriterion("delivery_time <=", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeLike(Date value) {
            addCriterion("delivery_time like", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeNotLike(Date value) {
            addCriterion("delivery_time not like", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeIn(List<Date> values) {
            addCriterion("delivery_time in", values, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeNotIn(List<Date> values) {
            addCriterion("delivery_time not in", values, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeBetween(Date value1, Date value2) {
            addCriterion("delivery_time between", value1, value2, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeNotBetween(Date value1, Date value2) {
            addCriterion("delivery_time not between", value1, value2, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andOrderAreaIsNull() {
            addCriterion("order_area is null");
            return (Criteria) this;
        }

        public Criteria andOrderAreaIsNotNull() {
            addCriterion("order_area is not null");
            return (Criteria) this;
        }

        public Criteria andOrderAreaEqualTo(String value) {
            addCriterion("order_area =", value, "orderArea");
            return (Criteria) this;
        }

        public Criteria andOrderAreaNotEqualTo(String value) {
            addCriterion("order_area <>", value, "orderArea");
            return (Criteria) this;
        }

        public Criteria andOrderAreaGreaterThan(String value) {
            addCriterion("order_area >", value, "orderArea");
            return (Criteria) this;
        }

        public Criteria andOrderAreaGreaterThanOrEqualTo(String value) {
            addCriterion("order_area >=", value, "orderArea");
            return (Criteria) this;
        }

        public Criteria andOrderAreaLessThan(String value) {
            addCriterion("order_area <", value, "orderArea");
            return (Criteria) this;
        }

        public Criteria andOrderAreaLessThanOrEqualTo(String value) {
            addCriterion("order_area <=", value, "orderArea");
            return (Criteria) this;
        }

        public Criteria andOrderAreaLike(String value) {
            addCriterion("order_area like", value, "orderArea");
            return (Criteria) this;
        }

        public Criteria andOrderAreaNotLike(String value) {
            addCriterion("order_area not like", value, "orderArea");
            return (Criteria) this;
        }

        public Criteria andOrderAreaIn(List<String> values) {
            addCriterion("order_area in", values, "orderArea");
            return (Criteria) this;
        }

        public Criteria andOrderAreaNotIn(List<String> values) {
            addCriterion("order_area not in", values, "orderArea");
            return (Criteria) this;
        }

        public Criteria andOrderAreaBetween(String value1, String value2) {
            addCriterion("order_area between", value1, value2, "orderArea");
            return (Criteria) this;
        }

        public Criteria andOrderAreaNotBetween(String value1, String value2) {
            addCriterion("order_area not between", value1, value2, "orderArea");
            return (Criteria) this;
        }

        public Criteria andContranctChangedIsNull() {
            addCriterion("contranct_changed is null");
            return (Criteria) this;
        }

        public Criteria andContranctChangedIsNotNull() {
            addCriterion("contranct_changed is not null");
            return (Criteria) this;
        }

        public Criteria andContranctChangedEqualTo(Integer value) {
            addCriterion("contranct_changed =", value, "contranctChanged");
            return (Criteria) this;
        }

        public Criteria andContranctChangedNotEqualTo(Integer value) {
            addCriterion("contranct_changed <>", value, "contranctChanged");
            return (Criteria) this;
        }

        public Criteria andContranctChangedGreaterThan(Integer value) {
            addCriterion("contranct_changed >", value, "contranctChanged");
            return (Criteria) this;
        }

        public Criteria andContranctChangedGreaterThanOrEqualTo(Integer value) {
            addCriterion("contranct_changed >=", value, "contranctChanged");
            return (Criteria) this;
        }

        public Criteria andContranctChangedLessThan(Integer value) {
            addCriterion("contranct_changed <", value, "contranctChanged");
            return (Criteria) this;
        }

        public Criteria andContranctChangedLessThanOrEqualTo(Integer value) {
            addCriterion("contranct_changed <=", value, "contranctChanged");
            return (Criteria) this;
        }

        public Criteria andContranctChangedLike(Integer value) {
            addCriterion("contranct_changed like", value, "contranctChanged");
            return (Criteria) this;
        }

        public Criteria andContranctChangedNotLike(Integer value) {
            addCriterion("contranct_changed not like", value, "contranctChanged");
            return (Criteria) this;
        }

        public Criteria andContranctChangedIn(List<Integer> values) {
            addCriterion("contranct_changed in", values, "contranctChanged");
            return (Criteria) this;
        }

        public Criteria andContranctChangedNotIn(List<Integer> values) {
            addCriterion("contranct_changed not in", values, "contranctChanged");
            return (Criteria) this;
        }

        public Criteria andContranctChangedBetween(Integer value1, Integer value2) {
            addCriterion("contranct_changed between", value1, value2, "contranctChanged");
            return (Criteria) this;
        }

        public Criteria andContranctChangedNotBetween(Integer value1, Integer value2) {
            addCriterion("contranct_changed not between", value1, value2, "contranctChanged");
            return (Criteria) this;
        }

        public Criteria andActivityIdIsNull() {
            addCriterion("activity_id is null");
            return (Criteria) this;
        }

        public Criteria andActivityIdIsNotNull() {
            addCriterion("activity_id is not null");
            return (Criteria) this;
        }

        public Criteria andActivityIdEqualTo(Long value) {
            addCriterion("activity_id =", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdNotEqualTo(Long value) {
            addCriterion("activity_id <>", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdGreaterThan(Long value) {
            addCriterion("activity_id >", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdGreaterThanOrEqualTo(Long value) {
            addCriterion("activity_id >=", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdLessThan(Long value) {
            addCriterion("activity_id <", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdLessThanOrEqualTo(Long value) {
            addCriterion("activity_id <=", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdLike(Long value) {
            addCriterion("activity_id like", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdNotLike(Long value) {
            addCriterion("activity_id not like", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdIn(List<Long> values) {
            addCriterion("activity_id in", values, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdNotIn(List<Long> values) {
            addCriterion("activity_id not in", values, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdBetween(Long value1, Long value2) {
            addCriterion("activity_id between", value1, value2, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdNotBetween(Long value1, Long value2) {
            addCriterion("activity_id not between", value1, value2, "activityId");
            return (Criteria) this;
        }

        public Criteria andCouponIdIsNull() {
            addCriterion("coupon_id is null");
            return (Criteria) this;
        }

        public Criteria andCouponIdIsNotNull() {
            addCriterion("coupon_id is not null");
            return (Criteria) this;
        }

        public Criteria andCouponIdEqualTo(Long value) {
            addCriterion("coupon_id =", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotEqualTo(Long value) {
            addCriterion("coupon_id <>", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdGreaterThan(Long value) {
            addCriterion("coupon_id >", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdGreaterThanOrEqualTo(Long value) {
            addCriterion("coupon_id >=", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdLessThan(Long value) {
            addCriterion("coupon_id <", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdLessThanOrEqualTo(Long value) {
            addCriterion("coupon_id <=", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdLike(Long value) {
            addCriterion("coupon_id like", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotLike(Long value) {
            addCriterion("coupon_id not like", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdIn(List<Long> values) {
            addCriterion("coupon_id in", values, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotIn(List<Long> values) {
            addCriterion("coupon_id not in", values, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdBetween(Long value1, Long value2) {
            addCriterion("coupon_id between", value1, value2, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotBetween(Long value1, Long value2) {
            addCriterion("coupon_id not between", value1, value2, "couponId");
            return (Criteria) this;
        }

        public Criteria andTag1IsNull() {
            addCriterion("tag1 is null");
            return (Criteria) this;
        }

        public Criteria andTag1IsNotNull() {
            addCriterion("tag1 is not null");
            return (Criteria) this;
        }

        public Criteria andTag1EqualTo(String value) {
            addCriterion("tag1 =", value, "tag1");
            return (Criteria) this;
        }

        public Criteria andTag1NotEqualTo(String value) {
            addCriterion("tag1 <>", value, "tag1");
            return (Criteria) this;
        }

        public Criteria andTag1GreaterThan(String value) {
            addCriterion("tag1 >", value, "tag1");
            return (Criteria) this;
        }

        public Criteria andTag1GreaterThanOrEqualTo(String value) {
            addCriterion("tag1 >=", value, "tag1");
            return (Criteria) this;
        }

        public Criteria andTag1LessThan(String value) {
            addCriterion("tag1 <", value, "tag1");
            return (Criteria) this;
        }

        public Criteria andTag1LessThanOrEqualTo(String value) {
            addCriterion("tag1 <=", value, "tag1");
            return (Criteria) this;
        }

        public Criteria andTag1Like(String value) {
            addCriterion("tag1 like", value, "tag1");
            return (Criteria) this;
        }

        public Criteria andTag1NotLike(String value) {
            addCriterion("tag1 not like", value, "tag1");
            return (Criteria) this;
        }

        public Criteria andTag1In(List<String> values) {
            addCriterion("tag1 in", values, "tag1");
            return (Criteria) this;
        }

        public Criteria andTag1NotIn(List<String> values) {
            addCriterion("tag1 not in", values, "tag1");
            return (Criteria) this;
        }

        public Criteria andTag1Between(String value1, String value2) {
            addCriterion("tag1 between", value1, value2, "tag1");
            return (Criteria) this;
        }

        public Criteria andTag1NotBetween(String value1, String value2) {
            addCriterion("tag1 not between", value1, value2, "tag1");
            return (Criteria) this;
        }

    }

    /**
     * This class corresponds to the database table mhc_quick_order
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * This class corresponds to the database table mhc_quick_order
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}